import { _decorator, Animation, AudioClip, Collider2D, Component, Contact2DType, Enum, IPhysics2DContact, Node, PhysicsSystem2D } from 'cc';
import { Direction, MoveBaseEntity, Role } from './MoveBaseEntity';
const { ccclass, property } = _decorator;

export enum RewardType {
    TwoShoot = "TwoShoot", Bomb = "Bomb"
}

Enum(RewardType);
/**
 * 敌机
 */
@ccclass('Reward')
export class Reward extends MoveBaseEntity {
    @property({ type: RewardType })
    rewardType: RewardType;

    update(dt: number) {
        const p = this.node.getPosition().clone();
        p.y -= dt * this.speed;
        this.node.setPosition(p);

        super.update(dt);
    }
}

